package a1.beanwiring;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlApplicationContext;


public class BeanWiringMain {
	public static void main(String[] args) {
		ApplicationContext context = new FileSystemXmlApplicationContext(
				"C:/Users/rrajamogan/workspace/MySpringProject/WebContent/xml/a1.beanwiring.xml");
		
		
		
		BeanWiring1 bean = context.getBean("bean1", BeanWiring1.class);
		
		System.out.println(bean.getInteger());
		System.out.println(bean.getString());
		System.out.println(bean.getBean().getInteger());
		System.out.println(bean.getBean().getString());
		System.out.println(bean.getBean().getAnotherInterger());
		for(String s : bean.getList()){
			System.out.println(s);
		}
	}

}
